Skip to content

Conversation

@apple1417
Copy link
Contributor

No description provided.

@apple1417 apple1417 merged commit 693de07 into bl-sdk:master Jun 12, 2025
14 checks passed
Comment on lines +92 to +105
MH_STATUS status = MH_OK;
status = MH_DisableHook(reinterpret_cast<LPVOID>(&GetStartupInfoA));
if (status != MH_OK) {
LOG(ERROR, "Failed to disable GetStartupInfoA hook: {:x}", static_cast<uint32_t>(status));

// If it fails, there isn't really any harm in leaving it active, just return
return;
}

status = MH_RemoveHook(reinterpret_cast<LPVOID>(&GetStartupInfoA));
if (status != MH_OK) {
LOG(ERROR, "Failed to remove GetStartupInfoA hook: {:x}", static_cast<uint32_t>(status));
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for the duplication?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

disable vs remove? those aren't the same thing, best to clean up properly

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, i'm blind just assumed they were both remove lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants